package com.atguigu.eduservice.client;

import com.atguigu.commonutils.R;
import com.atguigu.eduservice.client.hystrix.VodHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author cyt
 * @create 2020-05-13 10:09
 */

@FeignClient(name = "server-vod", fallback = VodHystrix.class)
@Component
public interface VodClient {

    @DeleteMapping(value = "/eduvod/video/deleteYunVideo/{id}")
    public R removeVideo(@PathVariable("id") String videoId);

    @DeleteMapping(value = "/eduvod/video/delete-batch")
    public R removeVideoList(@RequestParam("videoIdList") List<String> videoIdList);

}
